package main

//import (
//	"fmt"
//	_ "github.com/go-sql-driver/mysql" //Select the required database-driven imports
//	"github.com/zhuxiujia/GoMybatis"
//)
//
//
//var xmlBytes = []byte(`
//<?xml version="1.0" encoding="UTF-8"?>
//<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
//"https://raw.githubusercontent.com/zhuxiujia/GoMybatis/master/mybatis-3-mapper.dtd">
//<mapper>
//    <select id="SelectAll">
//        select * from success_killed
//    </select>
//</mapper>
//`)
//type Seckilled struct {
//	seckill_id int64
//	user_id int64
//	state int16
//	create_time string
//}
//type ExampleSeckilledMapperImpl struct {
//	SelectAll  func() ([]Seckilled, error)
//}
//
//
//
//
//func main() {
//	var engine = GoMybatis.GoMybatisEngine{}.New()
//	//Mysql link format user name: password @ (database link address: port)/database name, such as root: 123456 @(***.com: 3306)/test
//	err := engine.Open("mysql", "*?charset=utf8&parseTime=True&loc=Local")
//	if err != nil {
//		panic(err)
//	}
//	var exampleActivityMapperImpl ExampleActivityMapperImpl
//
//	//Loading XML implementation logic to ExampleActivity Mapper Impl
//	engine.WriteMapperPtr(&exampleActivityMapperImpl, xmlBytes)
//
//	//use mapper
//	result, err := exampleActivityMapperImpl.SelectAll(&result)
//	if err != nil {
//		panic(err)
//	}
//	fmt.Println(result)
//}
